﻿using UnityEngine;
using System.Collections;

namespace IMIForUnity
{
    public interface IGesture
    {
        /// <summary>
        /// 检测到姿势后回调函数
        /// </summary>
        /// <param name="gesture">姿势对象</param>
        /// <param name="player">玩家信息</param>
        /// <param name="gevent">姿势事件类别</param>
        void GestureEvent(ImiGesture gesture, ImiPlayerInfo player, GestureEvent gevent);

        /// <summary>
        /// 检测姿势, 抽象函数，继承ImiGesture必须实现
        /// </summary>
        /// <param name="playerinfo">用户信息</param>
        /// <param name="timestamp">当前时间戳</param>
        /// <returns></returns>
        ImiGesture.State CheckGesture(ImiPlayerInfo playerinfo, double timestamp);
    }
}